package cn.wolfcode.car.business.service.impl;

import cn.wolfcode.car.business.domain.Department;
import cn.wolfcode.car.business.mapper.DepartmentMapper;
import cn.wolfcode.car.business.service.DepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author WaveHi
 * @Date 19/11/2021 下午 2:28
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements DepartmentService {

//    @Autowired
//    private DepartmentMapper departmentMapper;

    @Override
    public Department getDepartment(Long id) {
        return getById(id);
//        return departmentMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Department> getAllDepartments() {
        return list();
//        return departmentMapper.selectAll();
    }

}
